import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { OpteratorTasksListComponent } from './opterator-tasks-list/opterator-tasks-list.component';
import { OpteratorTaskDatailComponent } from './opterator-task-datail/opterator-task-datail.component';
import { CanActivateGuard } from '../@core/services/can-load-service.guard';

const routes: Routes = [
  {
    path: '',
    component: OpteratorTasksListComponent,
    canActivate: [CanActivateGuard]
  },
  {
    path:"opterator-task-datail",
    component:OpteratorTaskDatailComponent,
    canActivate: [CanActivateGuard]
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OpteratorTasksRoutingModule { }
